﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace Kelper.Domain.Models.Validation
{
    public class EmailAttribute : RegularExpressionAttribute
    {
        public EmailAttribute()
            : base(@"^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,6}$")
        {
        }
    }
}